package org.yang.faq.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * <p>
 * 赞
 * </p>
 *
 * @author Yang
 * @since 2017-12-12
 */
public class Praise extends Model<Praise> {
    private static final long serialVersionUID = 1L;

	private int id;
    /**
     * 节目ID
     */
	@TableField("p_id")
	private String pId;
    /**
     * 微信ID
     */
	@TableField("wx_id")
	private String wxId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getWxId() {
		return wxId;
	}

	public void setWxId(String wxId) {
		this.wxId = wxId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Praise{" +
			", id=" + id +
			", pId=" + pId +
			", wxId=" + wxId +
			", createTime=" + createTime +
			"}";
	}
}
